package com.yj.java723;

import jakarta.servlet.http.HttpSession;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Date: 2024-07-23
 * Time: 13:29
 */
@RestController
@RequestMapping("/request")
public class RequestController {
    @RequestMapping("req14")
    public String req14(HttpSession session) {
        String username = (String) session.getAttribute("username");
        return "username:" + username;
    }
}
